﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.DAL.Statistics;
using MINERP.MODEL.FoundationModel;
using MINERP.DAL;
using System.Data;

namespace MINERP.BLL.Statistics
{
    
    public class InnerStatBLL
    {
        private InnerStatDAL _dal = new InnerStatDAL();
        public List<User_Info> GetUser()
        {
            List<User_Info> rtnUsers = new List<User_Info>();
            rtnUsers.Add(new User_Info() { UserID=0,UserName="全部"});
            //rtnUsers.Add(new User_Info() { UserID = 10000, UserName = "无" });
            foreach(users user in _dal.GetUsers())
            {
                rtnUsers.Add(new User_Info() {UserID=user.userID,UserName=user.UserName});
            }
            return rtnUsers;
        }
        public DataSet GetInnerData(int inType,DateTime inStartTime, DateTime inEndTime, int inDutyUserId, int inFromID)
        {
            return _dal.GetInnerData(inType, inStartTime, inEndTime, inDutyUserId, inFromID);
        }
    }
}
